import java.text.SimpleDateFormat
import java.util.Date

/**
  * description:
  * Rabcheng
  * Date:2019/3/22 12:00
  **/
object Testbreak {

    def main(args: Array[String]): Unit = {


      val ss = "你哪m"

      /*for (s <-ss if f){

        if(s.contains("h")){

          f = false

        }

      }*/


     /* var ints = List[Boolean]()
      for (s <- 0 to ss.length-1){

        val f = "ni".contains(ss(s))

        ints :+= f

      }





      println(ints)
//      println(ints.contains(false))


      val un = if (1 == 1) {
        true
      } else if (2 == 2) {
        true
      } else {
        true
      }

      println("un = " + un)*/

//      var list = List[String]()
      val s1 = "你,我,他".split(",")
      val s2 = "在,哪".split(",")
      val s3 = "g,m".split(",")


//      val strings1 = s1.split(",")


      var combinationList = List[Boolean]()

      for (s <- s1){
        for(i <- s2){
          for(j<- s3){
            val bool: Boolean = if(ss.contains(s) && ss.contains(i) && ss.contains(j)) true else false
            combinationList :+= bool
          }
        }
      }
      println(combinationList)

      var s = ""
        for(w<-combinationList){
        s = s.concat(w.toString).concat(",")
      }
      println(s)
      println(s.substring(0,s.length-1))


      if (combinationList.contains(true)){
        println("包含")
      }

      /*val sss = s1.concat(",").concat(s2).concat(",").concat(s3)


      var lisr = List[Boolean]()
      val strings: Array[String] = sss.split(",")
      for (s<-strings){
        val bool = "ssss".contains(s)
        lisr :+= bool
      }

      println(lisr)

      val value = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date)
      println(value)*/
















    }

}
